import request from '@/utils/request'

// 查询货品盘点历史记录列表
export function listHist(query) {
  return request({
    url: '/system/hist/list',
    method: 'get',
    params: query
  })
}

// 查询货品盘点历史记录详细
export function getHist(id) {
  return request({
    url: '/system/hist/' + id,
    method: 'get'
  })
}

// 新增货品盘点历史记录
export function addHist(data) {
  return request({
    url: '/system/hist',
    method: 'post',
    data: data
  })
}

// 修改货品盘点历史记录
export function updateHist(data) {
  return request({
    url: '/system/hist',
    method: 'put',
    data: data
  })
}

// 删除货品盘点历史记录
export function delHist(id) {
  return request({
    url: '/system/hist/' + id,
    method: 'delete'
  })
}

// 导出货品盘点历史记录
export function exportHist(query) {
  return request({
    url: '/system/hist/export',
    method: 'get',
    params: query
  })
}